<!--继承layout模版布局-->
{{extend '../common/layout.html'}}

<!--标题-->
{{block 'title'}}
<title>首页</title>
{{/block}}

<!--自己需要的css样式-->
{{block 'css'}}
<link rel="stylesheet" href="/css/home.css">
<link rel="stylesheet" href="/css/header.css"> {{/block}}

<!--主体内容-->
{{block 'content'}}

<!--引入导航-->
{{include '../common/header.html'}}

<div class="forum-wrapper">
    <div class="row">
        <div class="col col-lg-8">
            <ul id="forumListClassify" class="nav nav-pills forum-classify-list">
                <li class="nav-item on">全部</li>
                <li class="nav-item">文章分享</li>
                <li class="nav-item">脑图地址</li>
                <li class="nav-item">面试记录</li>
                <li class="nav-item">面试题</li>
            </ul>
            <ul class="list-group forum-list-wrapper">
                <!-- 插入forumList -->
            </ul>
            <nav aria-label="Page navigation" class="mt-3">
                <ul class="pagination justify-content-end">
                    {{include '../components/pages.html'}}
                </ul>
            </nav>
        </div>
        <div class="col col-lg-3" id="sidebar">
            <div class="panel">
                <div class="header">
                    <span class="col_fade">个人信息</span>
                </div>
                <div class="inner">
                    <div class="user_card">
                        {{if (nick_name)}}
                        <div>
                            <a class="user_avatar" href="javascript:;">
                                <img src="{{!avatar?'/img/7.jpg':avatar}}" title="kiss">
                            </a>
                            <span class="user_name">
                                <a class="dark" href="javascript:;"></a>
                            </span>
                            <div class="board clearfix">
                                <div class="floor">
                                    <span class="big">访问次数：{{loginNum}}</span>
                                </div>
                            </div>
                            <div class="space clearfix"></div>
                            <span class="signature">"{{sign?sign:'这个家伙很懒，什么东西也没留下！'}}"</span>
                        </div>
                        {{else}}
                        <h4>暂无消息</h4>
                        {{/if}}
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{{/block}}

<!--自己需要引入的js样式-->
{{block 'script'}}
<script src="/utils/ajax.js"></script>
<script src="/utils/formatTime.js"></script>
<script src="/utils/page.js"></script>
<script src="/js/header.js"></script>
<script src="/js/home.js"></script>
{{/block}}